package org.xukai.remoting.ws.stringsoap2;

import org.apache.cxf.interceptor.LoggingInInterceptor;
import org.apache.cxf.interceptor.LoggingOutInterceptor;
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
import org.xukai.remoting.ws.stringsoap2.Service;

/**
 * @author xukai
 * @desc
 * @date 2016-09-27-下午 6:19
 */
public class cxfStringTest {

    public static void main(String[] args) {

        JaxWsProxyFactoryBean fac = new JaxWsProxyFactoryBean();
        fac.setServiceClass(Service.class);
        fac.setAddress("http://127.0.0.1:8076/webServices2?groupName=test_20160927");
        fac.getInInterceptors().add(new LoggingInInterceptor());
        fac.getOutInterceptors().add(new LoggingOutInterceptor());
        Service sv = (Service) fac.create();
//        String res = sv.ehrNumSelection4("徐开","徐志跃");
//        System.out.println(res);

        sv.singleExam("sf","qwrqr");
    }
}
